<div class="container"> 
<!-- middle -->
<div id="middle" class="cols2">
    <div class="title">
    	<h3>What matters to you, matters to us</h3>
		<?=$this->session->flashdata('message')?>	
    </div>  
    
    <div class="content" role="main">
    	<article class="post-detail post-page">            
			<div class="entry">
              <div class="frame_box">
	            <img src="<?=base_url('assets/images/temp/entry_big_3.jpg')?>" width="620" height="346" alt="">
	          </div>
            <h3>Welcome</h3>
            <p>BDO is a world wide network of public accounting firms, called BDO Member Firms. With more than 1,000 offices in over 100 countries,
			   BDO is the fifth largest such network in the world.
			</p>   
            <p>
				Our objective is to deliver our national and international clients a consistently quality services. We know that close and 
				effective relationships matter to you and we are committed to a long term relationship as your trusted professional adviser.
			</p>
            
	        <!-- 2 cols layout, 2/3+1/3-->
            <div class="col col_2_3">
	            <div class="inner">
                	
                    <div class="posts_layout list_layout image_small">
						<h3>Latest News</h3>
						<?php foreach($news as $row):?>
	            	  	<div class="post-item image_left">	                    		                        	
		                	
                            <div class="post-title" style="margin-bottom:12px;">				            	
						    	<h2><a href="<?=postUrl($row['post_date'],$row['post_id'],$row['post_title'])?>"><?=$row['post_title']?></a></h2>                        
						    </div>	
                            
                            <div class="post-image">
		                    	<a href="<?=postUrl($row['post_date'],$row['post_id'],$row['post_title'])?>">
									<img src="<?=base_url(postImage($row['post_image']))?>" width="219" height="140" alt="">
								</a>
	                   	  	  	<div class="post-cat"><span><?=$row['user_name']?></span></div>
		                        <div class="score_box"><?=$row['post_day']?><span><?=substr($row['post_month'],0,3)?></span></div>
		                  	</div>
			            	                        
			                
                            <?php if(is_superUser()):?>
							<?php if($this->session->userdata('user_login')== $row['EmployeeID']): ?>
                            <div class="post-meta">
								<a onclick="return confirm('Are you sure you want to Update this Post !')" href="<?=site_url('post/edit/'.$row['post_id'])?>" class="author">Update This News</a> <span class="separator">|</span>
								<a onclick="return confirm('Are you sure you want to Remove this Post !')" href="<?=site_url('post/remove/'.$row['post_id'])?>" class="author">Remove This News</a> <span class="separator">|</span>
							</div>
							<?php endif;?>
                            <?php endif;?>
			                
							<div class="post-descr">
								<?=word_limiter($row['post_content'],75,'...')?>
			                </div>
                            <div class="clear"></div>
			        	</div>
						<?php endforeach;?>
                                          
                    </div>
                    
                </div>
            </div>
            <!--/ 2 cols layout -->
	         
            <div class="clear"></div>
            
            <div class="clear"></div>            
            </div>
        </article>
       
	</div>
    <!--/ content -->
    
    <!-- sidebar -->
    <div class="sidebar">

		<!-- recent entries -->
    	<div class="widget-container widget_recent_entries">
        	<img src="<?=base_url()?>/assets/images/icons/icons_16_date.png" alt="" class="widget_icon">  
			<h3 class="widget-title">WELCOME</h3>
                <ul>
                    <li> 
                        <div class="recent_entry">
							<a href="#" class="link-name">
								BDO is a world wide network of public accounting firms, called BDO Member Firms. With more than 1,000 offices in
								over 100 countries, BDO is the fifth largest such network in the world. 
								Our objective is to deliver our national and international clients a consistently quality services.
								We know that close and effective relationships matter to you and we are committed to a long term relationship 
								as your trusted professional adviser.
							</a>
						</div>
                    </li>
                 
				</ul>
        </div>
    	<!--/ recent entries -->
		
		<!-- recent entries -->
    	<div class="widget-container widget_recent_entries">
        	<img src="<?=base_url()?>/assets/images/icons/icons_16_date.png" alt="" class="widget_icon">  
			<h3 class="widget-title">Latest News</h3>
                <ul>
                    <?php foreach($latest as $row): ?>
					<li>
                        <a href="<?=postUrl($row['post_date'],$row['post_id'],$row['post_title'])?>">
						   <img src="<?=base_url().thumb(postImage($row['post_image']),seoUrl($row['post_title']),100,200)?>" alt="" class="thumbnail">
						</a> 
                        <div class="recent_entry"><a href="<?=postUrl($row['post_date'],$row['post_id'],$row['post_title'])?>" class="link-name"><?=$row['post_title']?></a></div>
                    </li>
					<?php endforeach;?>
				</ul>
        </div>
		
		<!-- recent entries -->
    	<div class="widget-container widget_recent_entries">
        	<img src="<?=base_url()?>/assets/images/icons/icons_16_date.png" alt="" class="widget_icon">  
			<h3 class="widget-title">Latest Info</h3>
                <ul>
                    <?php foreach($latest2 as $row): ?>
					<li>
                        <a href="<?=postUrl($row['post_date'],$row['post_id'],$row['post_title'])?>">
						   <img src="<?=base_url().thumb(postImage($row['post_image']),seoUrl($row['post_title']),100,200)?>" alt="" class="thumbnail">
						</a> 
                        <div class="recent_entry"><a href="<?=postUrl($row['post_date'],$row['post_id'],$row['post_title'])?>" class="link-name"><?=$row['post_title']?></a></div>
                    </li>
					<?php endforeach;?>
				</ul>
        </div>
    	    
    </div>
    <!--/ sidebar -->   
     	
</div>
<!--/ middle --> 
</div>
<!--/ container -->